<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Rotating Linear Gradient SVG</title>
    <style>
      body {
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        background-color: #f0f0f0;
      }
      svg {
        max-width: 100%;
        height: auto;
        border: 1px solid black;
      }
    </style>
  </head>
  <body>
    <svg width="938" height="378" viewBox="0 0 938 378" fill="none" xmlns="http://www.w3.org/2000/svg">
      <rect x="100" y="50" width="300" height="200" stroke="url(#test)" stroke-width="20" />

      <defs>
        <linearGradient id="test" x1="0" y1="0.5" x2="1" y2="0.5">
          <animateTransform attributeName="gradientTransform" type="rotate" from="0 0.5 0.5" to="360 0.5 0.5" dur="10s" repeatCount="indefinite" />
          <stop offset="0" stop-color="#FFBD13"></stop>
          <stop offset="1" stop-color="#7000FF" />
        </linearGradient>
      </defs>
    </svg>
  </body>
</html>
